package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.CheckItem;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface CheckitemMapper extends BaseMapper<CheckItem> {


        @Select("SELECT setmeal_id " +
                    "from t_setmeal_checkgroup  " +
                    "where CHECKGROUP_ID  " +
                    "in(select CHECKGROUP_ID " +
                    "FROM  t_checkgroup_checkitem " +
                    "where checkitem_id = #{cid})")
        Integer[] fingSetmealId(Integer cid);

}
